package Models;

import java.util.Date;

public class Barrels {
    private int BarrelID;
    private String BarrelDesc;
    private double BarrelVol;
    private BrewView CurrentBatch;
    private double CurrentVol;
    private String BarrelNotes;
    private String PastBatches;
    private Date DateFilled;
    
	public int getBarrelID() {
		return BarrelID;
	}
	public void setBarrelID(int barrelID) {
		BarrelID = barrelID;
	}
	public String getBarrelDesc() {
		return BarrelDesc;
	}
	public void setBarrelDesc(String barrelDesc) {
		BarrelDesc = barrelDesc;
	}
	public double getBarrelVol() {
		return BarrelVol;
	}
	public void setBarrelVol(double barrelVol) {
		BarrelVol = barrelVol;
	}
	public BrewView getCurrentBatch() {
		return CurrentBatch;
	}
	public void setCurrentBatch(BrewView currentBatch) {
		CurrentBatch = currentBatch;
	}
	public double getCurrentVol() {
		return CurrentVol;
	}
	public void setCurrentVol(double currentVol) {
		CurrentVol = currentVol;
	}
	public String getBarrelNotes() {
		return BarrelNotes;
	}
	public void setBarrelNotes(String barrelNotes) {
		BarrelNotes = barrelNotes;
	}
	public String getPastBatches() {
		return PastBatches;
	}
	public void setPastBatches(String pastBatches) {
		PastBatches = pastBatches;
	}
	public Date getDateFilled() {
		return DateFilled;
	}
	public void setDateFilled(Date dateFilled) {
		DateFilled = dateFilled;
	}
    
    public String getDisplayString(){
        return "Barrel: " 
            + Integer.toString(this.getBarrelID())
            + " - "
            + this.getBarrelDesc();
    }
    
    public String getFillData(){
    	String str = "Barrel: "
            + Integer.toString(this.getBarrelID())
            + " - ";
    	if(this.getCurrentBatch()!=null){
    		str += this.getCurrentBatch().getDisplayString();
    	} else {
    		str += "empty";
    	}
    	return str;
    }
}
